package sh.wn36.vehiclemanage.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="RefuelingRecord对象", description="")
public class RefuelingRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("车牌号码")
    @TableField("CAR_ID")
    private Integer carId;

    @ApiModelProperty("加油站")
    @TableField("OIL_STATION_ID")
    private Integer oilStationId;

    @ApiModelProperty("加油时间")
    @TableField("OIL_DATE")
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd")
    private Date oilDate;

    @ApiModelProperty("油料标号")
    @TableField("OIL_LABEL")
    private Integer oilLabel;

    @ApiModelProperty("油料单价(每升)")
    @TableField("UNIT_PRICE")
    private BigDecimal unitPrice;

    @ApiModelProperty("加油总价")
    @TableField("TOTAL_AMOUNT")
    private BigDecimal totalAmount;

    @ApiModelProperty("本次里程")
    @TableField("THIS_MIL")
    private Integer thisMil;

    @ApiModelProperty("上次里程")
    @TableField("LAST_MIL")
    private Integer lastMil;

    @ApiModelProperty("本次加油")
    @TableField("THIS_GAS_VOLUME")
    private BigDecimal thisGasVolume;

    @ApiModelProperty("上次加油")
    @TableField("LAST_GAS_VOLUME")
    private BigDecimal lastGasVolume;

    @ApiModelProperty("加油人员")
    @TableField("OPERATOR")
    private Integer operator;

    @ApiModelProperty("备注")
    @TableField("REMARKS")
    private String remarks;


}
